package com.hrm.service;

import com.github.pagehelper.Page;
import com.hrm.pojo.Employee;
import com.hrm.request.FindEmployeeRequest;
import com.hrm.vo.FindEmployeeVo;

import java.util.List;

public interface EmployeeService {

    /**
     * 根据条件查询员工列表
     * @param findEmployeeRequest
     * @return
     * @throws Exception
     */
    public Page<FindEmployeeVo> findEmployeeByInformations(FindEmployeeRequest findEmployeeRequest) throws Exception;

    /**
     * 添加员工
     * @param employee
     * @return
     */
    public boolean addEmployee(Employee employee);


    /**
     * 根据Id查询单个员工信息
     * @param id
     * @return
     */
    public Employee queryEmployee(Integer id );

    /**
     * 修改员工信息
     * @param employee
     * @return
     */
    public boolean updateEmployee(Employee employee);


    /**
     * 根据员工id（可多个）删除员工信息
     * @param employeeIdList
     * @return
     */
    public boolean deleteEmployees(List<Integer> employeeIdList);


}
